package sch.guo.crmsys.entity.cop;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2019-12-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CopProduct extends Model<CopProduct> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "product_id", type = IdType.AUTO)
    private Long productId;

    private String productName;

    private BigDecimal productRetailPrice;

    private String productSize;

    private String productDescription;

    public CopProduct(String productName, BigDecimal productRetailPrice, String productSize, String productDescription) {
        this.productName = productName;
        this.productRetailPrice = productRetailPrice;
        this.productSize = productSize;
        this.productDescription = productDescription;
    }

    public CopProduct() {
    }

    @Override
    protected Serializable pkVal() {
        return this.productId;
    }

}
